﻿using System;

namespace DBMock
{
    /// <summary>
    /// builder特性接口
    /// </summary>
    [AttributeUsage(AttributeTargets.Property)]
    public abstract class BuilderAttribute : Attribute
    {
        /// <summary>
        /// 空值概率
        /// </summary>
        public int NullPercent { get; set; }

        /// <summary>
        /// 创建builder实例
        /// </summary>
        /// <param name="seed">随机数生成器种子</param>
        /// <returns></returns>
        public abstract Builder GetBuilder(int seed);
    }
}
